﻿using System.Data.Linq.Mapping;

namespace Southern.Models.Southern.Partials
{
    public class SysRoleGroupUser
    {
        private bool _Allow;
        private bool _Deny;
        private int _GroupId;
        private int _Id;
        private int _RoleId;

        [Column(Storage = "_Id", DbType = "Int NOT NULL")]
        public int Id
        {
            get { return _Id; }
            set
            {
                if ((_Id != value))
                {
                    _Id = value;
                }
            }
        }

        [Column(Storage = "_RoleId", DbType = "Int NOT NULL")]
        public int RoleId
        {
            get { return _RoleId; }
            set
            {
                if ((_RoleId != value))
                {
                    _RoleId = value;
                }
            }
        }

        [Column(Storage = "_GroupId", DbType = "Int NOT NULL")]
        public int GroupId
        {
            get { return _GroupId; }
            set
            {
                if ((_GroupId != value))
                {
                    _GroupId = value;
                }
            }
        }

        [Column(Storage = "_Allow", DbType = "Bit NOT NULL")]
        public bool Allow
        {
            get { return _Allow; }
            set
            {
                if ((_Allow != value))
                {
                    _Allow = value;
                }
            }
        }

        [Column(Name = "[Deny]", Storage = "_Deny", DbType = "Bit NOT NULL")]
        public bool Deny
        {
            get { return _Deny; }
            set
            {
                if ((_Deny != value))
                {
                    _Deny = value;
                }
            }
        }
    }
}